
<style>
/* ============================================
   TERARISTIKA ÚSTÍ
   GLOBÁLNÍ DESIGN CELÉHO WEBU
   + PRODUKT ID 13
   ============================================ */

/* 1. BARVY */

:root {
    --tu-dark: #101820;
    --tu-navy: #142A39;
    --tu-blue: #174B68;
    --tu-blue-light: #2B7C9F;
    --tu-cyan: #74D1FB;
    --tu-cyan-light: #83D9FF;
    --tu-white: #FFFFFF;
    --tu-text: #D3E6F0;
    --tu-border: rgba(116,209,251,.43);
    --tu-card: rgba(7,27,41,.58);
}

/* ============================================
   2. JEDNOTNÉ POZADÍ CELÉHO WEBU
   ============================================ */

html {
    min-height: 100%;
    background-color: var(--tu-dark) !important;
}

body {
    min-height: 100vh !important;

    background:
        radial-gradient(
            ellipse at 92% 8%,
            rgba(43,124,159,.65) 0%,
            transparent 42%
        ),
        radial-gradient(
            ellipse at 85% 76%,
            rgba(24,121,170,.45) 0%,
            transparent 45%
        ),
        linear-gradient(
            115deg,
            #101820 0%,
            #142A39 38%,
            #174B68 73%,
            #2B7C9F 100%
        ) fixed !important;

    color: var(--tu-text);
}

/* PRŮHLEDNÉ OBALY SHOPTETU */

body .overall-wrapper,
body #content-wrapper,
body #content,
body .content-wrapper,
body .content,
body main {
    background-color: transparent !important;
    background-image: none !important;
}

/* ŠÍŘKA STRÁNKY */

body .container {
    max-width: 1200px !important;
}

/* ============================================
   3. GLOBÁLNÍ TYPOGRAFIE
   ============================================ */

body #content h1,
body #content h2,
body #content h3,
body #content h4 {
    color: var(--tu-white);
}

body #content p,
body #content li {
    color: var(--tu-text);
}

body #content a:not(.btn):not(.button) {
    color: var(--tu-cyan-light);
}

/* ============================================
   4. SKRYTÍ AUTOMATICKÝCH NADPISŮ
   OBSAHOVÝCH STRÁNEK SHOPTETU
   ============================================ */

/*
   Skryje například původní nadpis
   "Vstupenky" nad vlastní HTML stránkou.

   Netýká se názvů produktů ani kategorií.
*/

body #content article.pageArticleDetail > header {
    display: none !important;
}

body #content article.pageArticleDetail {
    padding-top: 0 !important;
}

body #content article.pageArticleDetail > div[itemprop="about"] {
    margin-top: 0 !important;
}

/* ============================================
   5. SPOLEČNÉ DESIGNOVÉ PRVKY
   ============================================ */

.tu-card {
    background: linear-gradient(
        135deg,
        rgba(7,27,41,.70),
        rgba(12,50,73,.38)
    );

    border: 1px solid var(--tu-border);
    border-radius: 13px;

    color: var(--tu-text);
}

.tu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 24px;

    background: var(--tu-cyan);
    border: 1px solid var(--tu-cyan);
    border-radius: 8px;

    color: #082637 !important;

    font-size: 13px;
    font-weight: 900;

    text-decoration: none !important;
    text-transform: uppercase;

    transition: background .2s ease;
}

.tu-button:hover {
    background: #A6E6FF;
}

/* ============================================
   6. PRODUKT ID 13
   ============================================ */

/* SKRYTÍ PŮVODNÍHO ÚVODU */

#product-detail-form:has(
    input[name="productId"][value="13"]
) > .p-intro {
    display: none !important;
}

/* ============================================
   7. DESKTOP – ROZLOŽENÍ PRODUKTU
   ============================================ */

@media (min-width: 992px) {

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) {
        display: grid !important;

        grid-template-columns:
            minmax(0,58%)
            minmax(0,42%) !important;

        column-gap: 45px !important;
        row-gap: 40px !important;

        padding: 35px 55px 50px !important;

        align-items: start !important;
    }

    /* OBRÁZEK VLEVO */

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) > .p-image-wrapper {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 100% !important;
        max-width: none !important;

        float: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .p-image,

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .p-main-image {
        width: 100% !important;
        max-width: none !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .p-main-image img {
        display: block !important;

        width: 100% !important;
        max-width: 600px !important;

        height: auto !important;
        max-height: 420px !important;

        object-fit: contain !important;

        margin: 0 !important;
        border-radius: 12px !important;
    }

    /* NÁKUPNÍ ČÁST VPRAVO */

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) > .p-info-wrapper {
        grid-column: 2 !important;
        grid-row: 1 !important;

        width: 100% !important;
        max-width: none !important;

        float: none !important;
        clear: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* DETAILNÍ POPIS POD PRODUKTEM */

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) > .custom-product-details {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;

        width: 100% !important;
        max-width: none !important;

        float: none !important;
        clear: both !important;

        margin: 0 !important;
    }
}

/* ============================================
   8. NÁKUPNÍ KARTA
   ============================================ */

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block {
    width: 100% !important;
    max-width: 100% !important;

    padding: 30px !important;

    background: linear-gradient(
        135deg,
        rgba(7,27,41,.90),
        rgba(12,50,73,.72)
    ) !important;

    border: 1px solid var(--tu-border) !important;
    border-radius: 14px !important;

    box-shadow:
        0 15px 35px rgba(0,0,0,.18) !important;

    color: #FFFFFF !important;
}

/* SKRYTÍ KATEGORIE */

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .detail-parameters.second {
    display: none !important;
}

/* ============================================
   9. TERMÍN BURZY
   ============================================ */

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .detail-parameters {
    width: 100% !important;

    margin: 0 0 25px !important;

    border: 0 !important;
    background: transparent !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .detail-parameters tr,

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .detail-parameters th,

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .detail-parameters td {
    border: 0 !important;
    background: transparent !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .detail-parameters th {
    color: var(--tu-cyan-light) !important;

    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .5px !important;

    line-height: 1.5 !important;
    vertical-align: middle !important;

    padding: 8px 10px 8px 0 !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .detail-parameters td {
    color: #FFFFFF !important;

    font-size: 14px !important;
    line-height: 1.5 !important;

    vertical-align: middle !important;

    padding: 8px 0 !important;
}

/* ============================================
   10. VÝBĚR TERMÍNU
   ============================================ */

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block #parameter-id-22 {
    width: 100% !important;

    height: 52px !important;
    min-height: 52px !important;

    padding: 0 35px 0 15px !important;

    background-color: #1A3445 !important;

    border: 1px solid rgba(116,209,251,.65) !important;
    border-radius: 8px !important;

    color: #FFFFFF !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: normal !important;

    cursor: pointer !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block #parameter-id-22:focus {
    border-color: #83D9FF !important;

    outline: 2px solid rgba(131,217,255,.35) !important;
    outline-offset: 2px !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block #parameter-id-22 option {
    background: #142A39 !important;
    color: #FFFFFF !important;
}

/* ============================================
   11. CENA
   ============================================ */

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .price {
    margin: 28px 0 25px !important;

    padding: 20px 0 0 !important;

    border-top: 1px solid rgba(116,209,251,.28) !important;

    clear: none !important;
    color: #FFFFFF !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .price-final,

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .price-final-holder {
    color: var(--tu-cyan-light) !important;

    font-size: 32px !important;
    font-weight: 900 !important;

    line-height: 1.2 !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .price span {
    color: var(--tu-cyan-light);
}

/* ============================================
   12. MNOŽSTVÍ A KOŠÍK
   ============================================ */

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .add-to-cart {
    display: flex !important;

    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    clear: none !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .add-to-cart .quantity {
    height: 52px !important;
    min-height: 52px !important;

    border-radius: 8px !important;

    overflow: hidden !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .add-to-cart .quantity input {
    height: 52px !important;
    min-height: 52px !important;

    font-size: 14px !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .add-to-cart .add-to-cart-button {
    flex: 1 1 155px !important;

    width: auto !important;
    min-width: 125px !important;

    height: 52px !important;
    min-height: 52px !important;

    padding: 0 16px !important;

    background: var(--tu-cyan) !important;

    border: 1px solid var(--tu-cyan) !important;
    border-radius: 8px !important;

    color: #082637 !important;

    font-size: 13px !important;
    font-weight: 900 !important;

    line-height: 1.2 !important;
    text-transform: uppercase !important;

    cursor: pointer !important;

    transition:
        background .2s ease,
        transform .2s ease !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .moved-buy-block .add-to-cart .add-to-cart-button:hover {
    background: #A6E6FF !important;
    border-color: #A6E6FF !important;

    transform: translateY(-1px) !important;
}

/* ============================================
   13. DETAILNÍ POPIS
   ============================================ */

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details {
    background: linear-gradient(
        135deg,
        rgba(7,27,41,.70),
        rgba(12,50,73,.38)
    ) !important;

    border: 1px solid var(--tu-border) !important;
    border-radius: 14px !important;

    padding: 35px !important;

    color: var(--tu-text) !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details .p-details {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details h2,

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details h3,

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details h4 {
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details h2 {
    font-size: 28px !important;
    line-height: 1.3 !important;

    margin: 0 0 20px !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details h3 {
    font-size: 20px !important;
    margin: 25px 0 15px !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details p,

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details li {
    color: var(--tu-text) !important;

    font-size: 14px !important;
    line-height: 1.85 !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details a {
    color: var(--tu-cyan-light) !important;
}

#product-detail-form:has(
    input[name="productId"][value="13"]
) .custom-product-details strong {
    color: #FFFFFF !important;
}

/* ============================================
   14. MOBIL A TABLET
   ============================================ */

@media (max-width: 991px) {

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) {
        display: block !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) > .p-image-wrapper {
        width: 100% !important;
        float: none !important;

        margin-bottom: 24px !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) > .p-info-wrapper {
        width: 100% !important;
        max-width: none !important;

        float: none !important;

        margin: 0 0 25px !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .moved-buy-block {
        padding: 24px 20px !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .custom-product-details {
        width: 100% !important;

        padding: 25px 20px !important;
        margin-top: 25px !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .moved-buy-block .price-final,

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .moved-buy-block .price-final-holder {
        font-size: 28px !important;
    }
}

/* MOBILNÍ POZADÍ */

@media (max-width: 767px) {

    body {
        background:
            radial-gradient(
                ellipse at 100% 5%,
                rgba(43,124,159,.45),
                transparent 50%
            ),
            linear-gradient(
                155deg,
                #101820 0%,
                #142A39 45%,
                #174B68 100%
            ) !important;

        background-attachment: fixed !important;
    }
}

@media (max-width: 480px) {

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .moved-buy-block .add-to-cart {
        gap: 8px !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .moved-buy-block .add-to-cart .add-to-cart-button {
        font-size: 12px !important;
        padding: 0 10px !important;
    }

    #product-detail-form:has(
        input[name="productId"][value="13"]
    ) .custom-product-details h2 {
        font-size: 23px !important;
    }
}
</style>

<script>
/* ============================================
   TERARISTIKA ÚSTÍ
   FUNKČNÍ ÚPRAVY PRODUKTU ID 13
   ============================================ */

(function () {

    function initProduct13() {

        const form = document.querySelector(
            "#product-detail-form"
        );

        if (!form) return;

        const productId = form.querySelector(
            'input[name="productId"]'
        );

        if (!productId || productId.value !== "13") {
            return;
        }

        const info = form.querySelector(
            ".p-info-wrapper"
        );

        if (!info) return;

        /* ========================================
           1. PŘESUN NÁKUPNÍCH PRVKŮ
           ======================================== */

        if (!info.querySelector(".moved-buy-block")) {

            const detailsBottom = form.querySelector(
                ".p-details-bottom .p-details"
            );

            if (detailsBottom) {

                const wrapper = document.createElement("div");

                wrapper.className = "moved-buy-block";

                const firstTable = detailsBottom.querySelector(
                    "table.detail-parameters.first"
                );

                const secondTable = detailsBottom.querySelector(
                    "table.detail-parameters.second"
                );

                const price = detailsBottom.querySelector(
                    ".price"
                );

                const addToCart = detailsBottom.querySelector(
                    ".add-to-cart"
                );

                if (firstTable) {
                    wrapper.appendChild(firstTable);
                }

                if (secondTable) {
                    wrapper.appendChild(secondTable);
                }

                if (price) {
                    wrapper.appendChild(price);
                }

                if (addToCart) {
                    wrapper.appendChild(addToCart);
                }

                if (wrapper.children.length > 0) {
                    info.prepend(wrapper);
                }
            }
        }

        /* ========================================
           2. ZMĚNA TEXTU VÝBĚRU TERMÍNU
           ======================================== */

        const select = form.querySelector(
            "#parameter-id-22"
        );

        if (select && select.options.length > 0) {

            const firstOption = select.options[0];

            if (
                firstOption.value === "" ||
                firstOption.disabled
            ) {
                firstOption.text = "Zvolit termín";
            }
        }

        /* ========================================
           3. DETAILNÍ POPIS POD PRODUKTEM
           ======================================== */

        const detailsWrapper = info.querySelector(
            ".p-details-wrapper"
        );

        if (detailsWrapper) {

            detailsWrapper.classList.add(
                "custom-product-details"
            );

            form.appendChild(detailsWrapper);
        }
    }

    if (document.readyState === "loading") {

        document.addEventListener(
            "DOMContentLoaded",
            initProduct13
        );

    } else {

        initProduct13();

    }

})();
</script>
